home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / infoserv / gopher / Unix / GopherTools / index2cap.pl.Z / index2cap.pl
Encoding:
Text File  |  1994-08-10  |  2.0 KB  |  53 lines

  1. Article 4376 of comp.infosystems.gopher:
  2. Xref: feenix.metronet.com comp.infosystems.gopher:4376 comp.archives.admin:237
  3. Path: feenix.metronet.com!news.utdallas.edu!tamsun.tamu.edu!cs.utexas.edu!math.ohio-state.edu!darwin.sura.net!news-feed-2.peachnet.edu!concert!samba.oit.unc.edu!sunSITE!jem
  4. From: jem@sunSITE.unc.edu (Jonathan Magid)
  5. Newsgroups: comp.infosystems.gopher,comp.archives.admin
  6. Subject: new tool for FTP and gopher archives
  7. Followup-To: comp.archives.admin
  8. Date: 11 Aug 1993 16:26:59 GMT
  9. Organization: University of North Carolina, Chapel Hill
  10. Lines: 36
  11. Distribution: world
  12. Message-ID: <24b6kj$sgc@samba.oit.unc.edu>
  13. NNTP-Posting-Host: calypso.oit.unc.edu
  14.  
  15. I've just put the first publically available version of Index2cap up for FTP.
  16. Index2cap is a Perl script which will rewrite FTP area index files into
  17. .cap files suitable for gopher.  From the README:
  18.  
  19. -------
  20.  
  21. index2cap v 0.2.1  July 6, 1993 
  22. (the most current release of this program is available on sunsite.unc.edu in
  23. /pub/packages/gopher/index2cap)
  24.  
  25. index2cap is a way of making an archive that is accessed by both FTP and
  26. gopher easier to maintain. It starts at the beginning of an archive (or part of
  27. an archive) searching for index files in the form:
  28.  
  29. foo.tar.Z  a useful utility that does bar
  30.  
  31. and then rewriting them into .cap entries with a "Name" field which gopherd 
  32. uses in replace of the file name.  so if the index file was in /pub/shoop, 
  33. index2cap would create a file /pub/shoop/.cap/foo.tar.Z, which would contain
  34.  
  35. Name= foo.tar.Z a useful utility that does bar
  36.  
  37. index2cap will create the .cap directory if it doesn't exist.
  38.  
  39.  
  40. index2cap was written to be run from a nightly crontab; probably the easiest
  41. way of using it is to write a special configuration file that describes your
  42. index file (see the man page) and then let it run automatically.
  43.  
  44. I hope this is useful, but make no guarrantees.  Please send any patches
  45. or bug-fixes to me to be included in a future release.
  46.  
  47. enjoy,
  48. jem.
  49. --
  50. jem@sunsite.unc.edu\/sunSITE admin
  51.  
  52.  
  53.